<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<title>ChinaBang Awards 2017</title>
		<link rel="stylesheet" href="../style/weui.css" />
		<link rel="stylesheet" href="./example.css" />
	</head>

	<body ontouchstart>
		<div class="weui-toptips weui-toptips_warn js_tooltips">错误提示</div>
		<div class="container" id="container"></div>
		<div class="page" style="opacity:1">
			<div class="weui-msg">
				<div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
				<div class="weui-msg__text-area">
					<h2 class="weui-msg__title">投票成功</h2>
					<p class="weui-msg__desc" id="vote_result"></p>
				</div>
				<div class="weui-msg__opr-area">
					<p class="weui-btn-area">
						<!--<a href="javascript:void(0);" class="weui-btn weui-btn_primary" onclick="$('#share_tip').slideDown('slow');">分享</a>-->
						<a href="javascript:void(0);" class="weui-btn weui-btn_primary" id="item_detail">前往 NodeData 上查看公司详情</a>
					</p>
				</div>
				<div class="weui-msg__extra-area">
					<div class="weui-footer">
						<p class="weui-footer__links" id="go_back">
							<a href="javascript:void(0);" class="weui-footer__link">返回上一页</a>
						</p>
						<p class="weui-footer__text">Copyright &copy; 2016 TechNode</p>
					</div>
				</div>
			</div>
			<div class="vote_hide" id="share_tip">
				<img src="images/cb/share.png"/>
			</div>
		</div>
		<script src="js/util/jquery-1.8.3.min.js"></script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script src="./weui.min.js"></script>
		<script src="js/util/configs.js"></script>
		<script src="js/util/restUrls.js"></script>
		<script src="js/util/utils.js"></script>
		<script type="text/javascript">
			$(function () {
				var item_name = utils.getUrlParam("name");
				var words = "感谢您为 "+item_name+" 投上第 "+ utils.getUrlParam("count")+" 票";
				$("#vote_result").html(words);
				$("#item_detail").on("click", function() {
					var indexId = utils.getUrlParam("indexId");
					var type = utils.getUrlParam("type");
					var url_prefix = "http://data.technode.com/"
					
					if(type == 1 || type == 2) {
						window.location.href = url_prefix + "profile/" + indexId;	
					} else if(type == 3) {
						window.location.href = url_prefix + "startup/" + indexId;	
					}else if(type == 4) {
						window.location.href = url_prefix + "investor/" + indexId;
					}
				})
				
				$("#go_back").on("click", function() {
					var categoryId = utils.getUrlParam("voteCategoryId");
					window.location.href = "item.html?categoryId="+ categoryId;
				});
			});
		</script>
	</body>
</html>